package drive.RemakeController;





import drive.RemakeService.ServiceInterface.TravelMapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/travel-map")
public class TravelMapController {

    @Autowired
    private TravelMapService travelMapService;

    @GetMapping("/nearby-travel-notes")
    public String getNearbyTravelNotes(double minLatitude, double maxLatitude, double minLongitude, double maxLongitude) {
        return travelMapService.getNearbyTravelNotes(minLatitude, maxLatitude, minLongitude, maxLongitude);
    }

    @GetMapping("/nearby-disasters")
    public String getNearbyDisasters(double minLatitude, double maxLatitude, double minLongitude, double maxLongitude) {
        return travelMapService.getNearbyDisasters(minLatitude, maxLatitude, minLongitude, maxLongitude);
    }

//    @GetMapping("/disaster-details")
//    public String getDisasterDetails(@RequestParam Integer disasterID) {
//        return travelMapService.getDisasterDetails(disasterID);
//    }
//
//    @PostMapping("/search-destination")
//    public String searchDestination(@RequestParam String destination) {
//        return travelMapService.searchDestination(destination);
//    }
//
//    @PostMapping("/update-disaster")
//    public String updateDisaster(@RequestParam Integer disasterID, @RequestParam String updateInfo) {
//        return travelMapService.updateDisaster(disasterID, updateInfo);
//    }
}